package class2;

public class Shape {
    private int x;
    private int y;

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }
    public Shape(int x,int y){
        setX(x);
        setY(y);
    }
    public int getY() {
        return y;
    }
    public static void test1(){
        System.out.println("我是父类中的静态方法");
    }
    public void setY(int y) {
        this.y = y;
    }
    public void show1(){
        System.out.println("我是父类独有的");
    }
    public void show(){
        System.out.println("横纵坐标分别是"+this.x+this.y);
    }

    public static void main(String[] args) {

    }
}
